<template>
  <div id>
    <div class="title title_tui" v-if="status==3||status==4">退款信息</div>
    <div class="title" v-else>
      <img :src="store_info.store_logo" alt>
      &nbsp;{{store_info.store_name}}
      <i class="iconfont iconrightArrow"></i>
    </div>
    <div class="shop_list">
      <div class="list" v-for="(item,index) in dataList">
        <div class="list_left">
          <img :src="item.goods_info.goods_thumb" alt>
        </div>

        <div class="list_right">
          <div class="list_name">{{item.goods_info.goods_name}}</div>
          <div class="list_remarks">
            <span class="spanList">{{item.goods_ext_info.goods_ext_style}}</span>
          </div>
          <div class="list_price">
            ￥{{item.goods_ext_info.goods_price}}
            <span v-if="status==3||status==4" style="color:#000">&nbsp;x{{item.goods_num}}</span>
          </div>
          <i class="iconfont iconCloseArrow" v-if="item.goods_num&&status!=3&&status!=4">x{{item.goods_num}}</i>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  props: ["dataList", "status"],
  data() {
    return {
      store_info: {},
      list: [
        {
          url: require("../../../static/image/180.png"),
          name: "随时买官方店铺"
        }
      ]
    };
  },
  mounted() {
    this.store_info = this.appJS.getStorage("store_info");
  },
  components: {}
};
</script>

<style scoped lang='less'>
.list_name {
  font-size: 0.7rem;
  .text(1);
}
.list {
  min-height: 20vw;
  width: 100%;
  padding: 0.5rem;

  background: #fff;
  display: flex;
  justify-content: flex-start;
  border-bottom: 1px solid #efefef;
  transition: 0.4s;
  &:active {
    background: @bg_color;
  }
  &:last-child {
    border-bottom: 0;
  }
  .list_left {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 20vw;
    width: 20vw;
    img {
      height: 18vw;
      width: 18vw;
      border-radius: 5px;
    }
  }

  .list_right {
    .list_left;
    padding-left: 0.2vw;
    padding-top: 2vw;
    position: relative;
    width: calc(100% - 20vw);
    align-items: flex-start;
    flex-direction: column;
    .iconCloseArrow {
      position: absolute;
      .posAbs(unset, 0.2rem, 0.2rem, unset);
      font-size: 0.6rem;
    }
    .list_price {
      color: #ec4f46;
      font-size: 4vw;
      position: absolute;
      .posAbs(unset, unset, 0.3rem, 0.5vw);
      display: flex;
      justify-content: flex-start;
    }
  }

  .list_remarks {
    color: #888888;
    font-size: 0.4rem;
    .text(1);
    .flex-box(start, center, 0.2rem);
  }
}
.title {
  height: 2.5rem;
  width: 100%;
  .flex-box(start, center, 0.5rem);
  padding: 0 0.5rem;
  font-size: 0.8rem;
  color: #888;
  img {
    height: 1.5rem;
    width: 1.5rem;
    border-radius: 100px;
  }
}
.title_tui {
  color: #000;
}
</style>
